<?php


namespace App\GrpcClient;


use Hyperf\GrpcClient\BaseClient;
use User\GetUserInfoRequest;
use User\UserInfo;

class UserClient extends BaseClient
{
    public function getUserInfo(GetUserInfoRequest $getUserInfoRequest)
    {
        return $this->_simpleRequest(
            '/user.User/getUserInfo',
            $getUserInfoRequest,
            [UserInfo::class, 'decode']
        );
    }
}